/*
 * @Author: huangtianyang 916072572@qq.com
 * @Date: 2023-09-21 15:22:36
 * @LastEditors: huangtianyang
 * @LastEditTime: 2023-09-21 15:44:11
 * @FilePath: \cxl-admin\src\apis\statistics\register.ts
 */
import axios from '../../axios/index'

/**
 * 企业注册区域统计总数（饼图）
 * @returns
 */
export const registerCompanyCityChart = () => {
    return axios({
        method: 'get',
        url: '/api/system/company/register/city/count'
    })
}

/**
 * 企业注册月份统计总数（折线图）
 * @returns
 */
export const registerCompanyYearChart = (year?: string) => {
    return axios({
        method: 'get',
        url: '/api/system/company/register/month/count',
        params: { year }
    })
}
